﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="product_img_add.aspx.cs"
    Inherits="Com.CMS263.Web.manage.ProductManage.product_img_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台-产品管理</title>
    <link href="/manage/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/box.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="/manage/js/common.js"></script>

    <script language="javascript" type="text/javascript">
        function checkForm() {
            var o1 = _('txtTitle'), o4 = _('txtProductImg'),
		r1 = /^[a-z]([a-z ]+[a-z])?$/i, r2 = /^\d+$/, r3 = /^\d+(\.\d{2})?$/;
            if (o1.value.length < 1) { return ts(o1, '请输入图片名称!'); }

            return true;
        }
        function ts(o, m) {
            o.focus(); alert(m); return false;
        }
        
    </script>

</head>
<body>
    <form id="form1" name="form1" runat="server" action="" enctype="multipart/form-data"
    method="post">
    <div class="main">
        <div class="mainMenu">
            <div class="mainMenuList">
                <ul>
                    <li class="s"><a href="product_img_add.aspx?productId=<%=ProductId %>"><b>添加图片</b><span></span></a></li>
                    <li><a href="product_img_list.aspx?productId=<%=ProductId %>"><b>图片列表</b><span></span></a></li>
                </ul>
            </div>
        </div>
        <div class="mainContent">
            <div class="con1 productForm">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
                    <tr>
                        <td width="180" class="r">
                            *商品名称：
                        </td>
                        <td>
                            <%=GetProduct(ProductId).Title%>
                        </td>
                    </tr>
                    <tr>
                        <td width="180" class="r">
                            *图片名称：
                        </td>
                        <td>
                            <input id="txtTitle" name="txtTitle" type="text" class="input1" style="width: 155px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="r">
                            *商品图片：
                        </td>
                        <td>
                            <input name="txtProductImg" id="txtProductImg" type="file" class="input1" style="width: 155px" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="con1 productFormBtn cf">
                <div class="btn3">
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return checkForm()" />
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
